package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("cmfz_log")
public class CmfzLog implements Serializable {
    @TableId(value="log_id",type = IdType.AUTO)
    private Integer logId;

    private String adminUsername;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date logDate;

    private String logContent;

    private String logIp;

    public CmfzLog() {
    }

    public CmfzLog(Integer logId, String adminUsername, Date logDate, String logContent, String logIp) {
        this.logId = logId;
        this.adminUsername = adminUsername;
        this.logDate = logDate;
        this.logContent = logContent;
        this.logIp = logIp;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getAdminUsername() {
        return adminUsername;
    }

    public void setAdminUsername(String adminUsername) {
        this.adminUsername = adminUsername;
    }

    public Date getLogDate() {
        return logDate;
    }

    public void setLogDate(Date logDate) {
        this.logDate = logDate;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }

    @Override
    public String toString() {
        return "CmfzLog{" +
                "logId=" + logId +
                ", adminUsername='" + adminUsername + '\'' +
                ", logDate=" + logDate +
                ", logContent='" + logContent + '\'' +
                ", logIp='" + logIp + '\'' +
                '}';
    }
}